<?php $type_stats = $graph->stats($workouts, 'type');
$heartrate_stats = $graph->stats($workouts, 'heartrate');
$ability_stats = $graph->stats($workouts, 'ability'); ?>
<div class="actions">
<ul>
	<li><a href="#types" class="tab-link"><?php __('Types')?></a></li>
	<li><a href="#heartrate" class="tab-link"><?php __('Heartrate')?></a></li>
	<li><a href="#ability" class="tab-link"><?php __('Ability')?></a></li>
</ul>
</div>
<div class="tab-holder">
	<div class="tab" id="types">
		<?php echo $this->element('workouts/stats_table', array('stats'=>$type_stats)); ?>
	</div>
	<div class="tab" id="heartrate">
		<?php echo $this->element('workouts/stats_table', array('stats'=>$heartrate_stats)); ?>
	</div>
	<div class="tab" id="ability">
		<?php echo $this->element('workouts/stats_table', array('stats'=>$ability_stats)); ?>
	</div>
</div>